package com.smedi.ismedi.inmail.api.dto.request;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import javax.validation.constraints.NotNull;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @className: UserActionLogPageRequest
 * @Description: TODO
 * @version: v1.0.0
 * @author: wzx
 * @date: 2022/9/30 11:03
 */

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "用户操作记录 分页 请求")
public class UserActionLogPageRequest {

    /**
     * 分页行数
     */
    @NotNull
    @ApiModelProperty(value = "分页行数", example = "10")
    private long size;

    /**
     * 当前页数
     */
    @NotNull
    @ApiModelProperty(value = "当前页数", example = "1")
    private long current;

    /**
     * 排序字段
     */
    @ApiModelProperty(value = "排序字段" , example = "avgAttendanceFloat")
    private String orderBy;

    /**
     * 是否升序
     */
    @ApiModelProperty(value = "是否升序", example = "true")
    private boolean asc;

    @ApiModelProperty(value = "操作时间",example = "2022-05-10")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private String time;

    @ApiModelProperty(value = "接口描述",example = "保存xx")
    private String description;

    @ApiModelProperty(value = "姓名",example = "人名")
    private String name;
}